package com.santi.entity;

import java.math.BigDecimal;

public class Book {

	private Integer id;
	
	private String name;
	
	private BigDecimal price;
	
	private String author;
	
	private Integer sales;
	
	private Integer stock;

	private String imgpath;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Integer getSales() {
		return sales;
	}

	public void setSales(Integer sales) {
		this.sales = sales;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public String getImgpath() {
		return imgpath;
	}

	public void setImg_path(String imgpath) {
		this.imgpath = imgpath;
	}

	@Override
	public String toString() {
		return "Book{" +
				"id=" + id +
				", name='" + name + '\'' +
				", price=" + price +
				", author='" + author + '\'' +
				", sales=" + sales +
				", stock=" + stock +
				", imgpath='" + imgpath + '\'' +
				'}';
	}
}
